package com.funi.vo;

import com.funi.bo.ProjectBo;
import com.funi.bo.UserBo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**********************************************************************
 * &lt;p&gt;文件名：PersonTotalResult.java &lt;/p&gt;
 * &lt;p&gt;文件描述：研发代码共享统计结果
 * @project_name：code_total
 * @author zengshunyao
 * @create 2025/5/28 20:17
 * @history
 * @department：政务事业部
 * Copyright ChengDu Funi Cloud Code Technology Development CO.,LTD 2014 
 *                    All Rights Reserved.
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Builder
public class DeveloperContributedCodeLineStatResult implements Serializable {

    /**
     * 开始时间
     */
    private String since;
    /**
     * 截止时间
     */
    private String until;
    /**
     * 参与过的项目业务对象集合
     */
    private List<ProjectBo> involvedProjectBoList = new ArrayList<>();
    /**
     * 用户实例
     */
    private UserBo userBo;
    /**
     * 用户id
     */
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * email
     */
    private String email;
    /**
     * 添加代码行数
     */
    private Integer addCode;
    /**
     * 删除代码行数
     */
    private Integer delCode;
    /**
     * 累计变更行数
     */
    private Integer totalCode;

    @Override
    public String toString() {
        return "{" +
                "开始时间='" + since + '\'' +
                ", 截止时间='" + until + '\'' +
                ", 用户id='" + id + '\'' +
                ", 姓名='" + name + '\'' +
                ", email='" + email + '\'' +
                ", 添加代码行数='" + addCode + '\'' +
                ", 删除代码行数='" + delCode + '\'' +
                ", 累计变更行数='" + totalCode + '\'' +
                '}';
    }
}
